package com.ty.day1;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create : 2023/11/14 11:10
 */
public class DogDemo {
    public static void main(String[] args) {
        Dog dog1 = new Dog();
        Dog dog2 = new Dog();
        Dog dog3 = new Dog();
        Dog dog4 = dog1;
        dog1.name="土豆";
        dog1.sex="女";
        dog1.color="黄毛";
        dog1.age=3;
        System.out.println(dog1);
        System.out.println(dog2);
        dog4.name="旺旺";
        System.out.println(dog1.name);
        dog2.eat("骨头");
        dog2.sing();
        dog4.eat("🐟");
        dog4.sing();
        System.out.println(dog1==dog4);
    }
}
